package com.smart_campus.teg.mapper;

import com.smart_campus.sys.domain.User;
import com.smart_campus.teg.common.TEGResultObj;
import com.smart_campus.teg.domain.TegTalk;
import com.smart_campus.teg.vo.TegTalkVo;

import java.util.List;

public interface TegTalkMapper {
    /**
     * 根据id删除数据
     * */
    int deleteByPrimaryKey(Integer talkId);

    /**
     * 添加数据
     * */
    int insert(TegTalk record);

    int insertSelective(TegTalk record);

    /**
     * 根据id查询数据
     * */
    TegTalk selectByPrimaryKey(Integer talkId);

    int updateByPrimaryKeySelective(TegTalk record);

    /**
     * 根据id更新数据
     * */
    int updateByPrimaryKey(TegTalk record);

    /**
     * 查询所有谈心记录
     * */
    List<TegTalk> selAllTalk(TegTalkVo tegTalkVo);

    User selstudent(String studentName);
}